package com.lipeng.service;

import com.lipeng.bean.Game;
import com.lipeng.bean.Tickets;
import com.lipeng.utils.AjaxResult;

import java.util.List;

/**
 * Created by dllo on 18/3/8.
 */
public interface GameService {
    Game selectGameById(Integer gid);
    List<Game> selectAllGame();
    int insertGame(Game game);
    int updateGame(Game game);
    int deleteGameById(Integer gid);
    List<Game> selectGameByName(String name);

    AjaxResult buyTickets(Integer uid, Integer gid, Integer count);
    AjaxResult payTickets(Integer tid);
    AjaxResult delTickets(Integer tid);
    List<Tickets> selectTicketsByUid(Integer uid);
    Tickets selectTicketsByTid(Integer tid);
}
